package cn.hh.wechatkit.helper;

/**
 * Created this one by HMH on 2017/5/19.
 */
public class WxConst {

    /**
     * wechat URL
     */

    //获取access_token
    public static final String AccessToken_GET_URL = "https://api.weixin.qq.com/cgi-bin/token?grant_type=client_credential&appid=APPID&secret=APPSECRET";

    //获取登陆凭证校验
    public static final String JsCode2Session_GET_URL = "https://api.weixin.qq.com/sns/jscode2session?appid=APPID&secret=SECRET&js_code=JSCODE&grant_type=authorization_code";

    //获取用户信息
    public static final String UnionID_GET_URL = "https://api.weixin.qq.com/cgi-bin/user/info?access_token=ACCESS_TOKEN&openId=OPENID&lang=zh_CN";

    //认证页面 Url
    public static final String Auth_GET_Url = "https://open.weixin.qq.com/connect/oauth2/authorize?appid=APPID&redirect_uri=REDIRECT_URI&response_type=code&scope=SCOPE&state=STATE#wechat_redirect";

    //获取JSApi-Token
    public static final String JSApiToken_GET_URL = "https://api.weixin.qq.com/cgi-bin/ticket/getticket?access_token=ACCESS_TOKEN&type=jsapi";

    //认证Token access Token
    //通过code换取网页授权access_token
    public static final String AuthoAccessToken_Get_URL = "https://api.weixin.qq.com/sns/oauth2/access_token?appid=APPID&secret=SECRET&code=CODE&grant_type=authorization_code";

    //获取微信卡券 ticket Token
    public static final String APITicketToken_GET_URL = "https://api.weixin.qq.com/cgi-bin/ticket/getticket?access_token=ACCESS_TOKEN&type=wx_card";

    //刷新认证 autho access Token
    public static final String RefreshAuthoAccessToken_Get_URL = "https://api.weixin.qq.com/sns/oauth2/refresh_token?appid=APPID&grant_type=refresh_token&refresh_token=REFRESH_TOKEN";

    //获取用户信息
    public static final String PullUserInfo_Get_URL = "https://api.weixin.qq.com/cgi-bin/user/info?access_token=ACCESS_TOKEN&openId=OPENID&lang=zh_CN";

    //create Wx_Card
    public static final String CreateCard_Post_URL = "https://api.weixin.qq.com/card/create?access_token=ACCESS_TOKEN";

    //UpdateCardSeat
    public static final String UpdateCardSeat_Post_URL = "https://api.weixin.qq.com/card/meetingticket/updateuser?access_token=ACCESS_TOKEN";

    //CheckTicketState
    public static final String CheckTicketState_Post_URL = "https://api.weixin.qq.com/card/code/get?access_token=ACCESS_TOKEN";

    //cancel ticket
    public static final String CancelCard_Post_URL = "https://api.weixin.qq.com/card/delete?access_token=ACCESS_TOKEN";

    //cancel card
    public static final String CancelTicket_Post_URL = "https://api.weixin.qq.com/card/code/unavailable?access_token=ACCESS_TOKEN";

    //核销卡券
    public static final String ConsumeTicket_Post_URL = "https://api.weixin.qq.com/card/code/consume?access_token=ACCESS_TOKEN";

    //获取卡券信息
    public static final String GetCardInfo_POST_URL = "https://api.weixin.qq.com/card/get?access_token=ACCESS_TOKEN";

    //更新卡券余量
    public static final String ModifyStock_POST_URL = "https://api.weixin.qq.com/card/modifystock?access_token=ACCESS_TOKEN";

    //更新卡券信息
    public static final String UpdateCardInfo_POST_URL = "https://api.weixin.qq.com/card/update?access_token=ACCESS_TOKEN";

    //解码卡券code
    public static final String DecodeCardCode_POST_URL = "https://api.weixin.qq.com/card/code/decrypt?access_token=TOKEN";

    //发送模板消息
    public static final String SendTemplateMsg_POST_URL = "https://api.weixin.qq.com/cgi-bin/message/wxopen/template/send?access_token=ACCESS_TOKEN";
}
